package edu.kaist.cs442.server.locationalpush.push.c2dm;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * Created by IntelliJ IDEA.
 * User: duyleekun
 * Date: 2/29/12
 * Time: 11:21 PM
 * To change this template use File | Settings | File Templates.
 */
@Path("/mobile")
public interface PushSVC {


	/*
	Sample
	curl --data '{"collapseKey":"asdf","contentList":{"aaaa":"you","ssss":"you2"}}' -X POST -H 'Content-type:application/json' -v http://localhost:8080/notification/mobile/11111/send
	 */
    @POST
    @Path("/{uuid}/send")
    @Consumes(MediaType.APPLICATION_JSON)
    int sendTo(MessageVO message, @PathParam("uuid") String uuid);

	/*
	curl --data '{"collapseKey":"asdf","contentList":{"aaaa":"you","ssss":"you2"}}' -X POST -H 'Content-type:application/json' -v http://localhost:8080/notification/mobile/all/send?latitude=3\&longitude=2\&diameter=100
	 */
	@POST
	@Path("/all/send")
	@Consumes(MediaType.APPLICATION_JSON)
	int sendNearby(MessageVO message, @QueryParam("latitude") double latitude, @QueryParam("longitude") double longitude, @QueryParam("diameter") double diameter);

}
